/*
 * HandleException.h
 *
 *  Created on: Jan 22, 2013
 *      Author: bird
 */

#ifndef HANDLEEXCEPTION_H_
#define HANDLEEXCEPTION_H_
#include<stdio.h>
#include<stdlib.h>
#include <errno.h>
#include<string.h>
//#ifdef DEBUG
	#define PrintPosition()  // printf("%s,%s,%d\n",__FILE__,__func__,__LINE__)
	#define PrintTrackFun()  // printf("%s \n",__func__)
//#else
//	#define PrintPosition()
//	#define PrintTrackFun()
//#endif
extern int errno;

class CHandleException {
public:
	CHandleException();
	static void print(const char*);
	static void print_socket_excepetion(char*);
	static void print_message_excepetion(char*);
	static void print_get_common_exception(char*);
	virtual ~CHandleException();
};

/* namespace HandleException */
#endif /* HANDLEEXCEPTION_H_ */
